#include "pintor.h"
#include <QPainter>
#include <mycanvas.h>

pintor::pintor(MyCanvas* canvas):QPainter(canvas)
{
    this->p_canvas=canvas;
}

    void pintor::pintarPunto(int x, int y)
    {
        int nuevox=x+p_canvas->size().width();
        int nuevoy=y+p_canvas->size().height();
        this->drawPoint(nuevox, nuevoy);
    }

